package com.cn.xiaonuo.common.utils.payutils;

import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @BelongsProject: slb-reports-java
 * @Author: likui
 * @CreateTime: 2022-11-29  15:44
 * @Description: TODO
 */
@Component
public class GwqUtil {

    public static GwqUtil lakalaPayUtilNew;

    public static String GWQ_URL;

    public static String TOKEN;

    //购物券交易明细
    public static String JYB_GWQ_CHANGE_DETAILS;
    //购物券余额
    public static String GWQ_BALANCE;

    @Value("${gwq.gwqUrl}")
    private String gwqUrl;

    @Value("${gwq.token}")
    private String token;
    @Value("${gwq.jybGwqChangeDetails}")
    private String jyb_gwq_change_details;
    @Value("${gwq.gwqBalance}")
    private String gwq_balance;


    @PostConstruct
    public void initValue() throws Exception {
        lakalaPayUtilNew=this;
        GWQ_URL=gwqUrl;
        TOKEN=token;
        JYB_GWQ_CHANGE_DETAILS=jyb_gwq_change_details;
        GWQ_BALANCE=gwq_balance;
    }
}
